package com.note.gateway;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import com.note.common.config.GlobalCorsConfig;
import com.note.common.config.JedisPoolConfig;
import com.note.common.config.RedisConfig;
import com.note.common.config.UserContextWebMvcConfig;
import com.note.common.utils.JwtUtils;
import com.note.common.utils.RedisUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 网关启动类
 */
@EnableAsync
@EnableKnife4j
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@Import({RedisConfig.class,
        JedisPoolConfig.class,
        RedisUtils.class,
        JwtUtils.class,
        GlobalCorsConfig.class})
public class NoteGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(NoteGatewayApplication.class, args);
    }
}
